package com.fly;

import org.junit.runner.JUnitCore;
import org.junit.runner.Result;
import org.junit.runner.notification.Failure;

import com.fly.rest.RestTest;

public class JunitRunner
{
    public static void main(String[] args)
    {
        Result result = JUnitCore.runClasses(RestTest.class);
        for (Failure fail : result.getFailures())
        {
            System.out.println(fail.toString());
        }
        if (result.wasSuccessful())
        {
            System.out.println("\n\n★★★★  All tests finished successfully  ★★★★\n\n");
        }
    }
}